package biz.innovasoft.nodb.matchers;

import org.hamcrest.Factory;
import org.hamcrest.Matcher;
import org.hamcrest.core.IsEqual;

public class EqualsMatcher<T> extends IsEqual<T> {

	private Object equalArg;
	
	public EqualsMatcher(T equalArg) {
		super(equalArg);
		this.equalArg = equalArg;
	}
	
	public Object getValue () {
		return equalArg;
	}
	
	@Factory
    public static <T> Matcher<? super T> equalTo(T operand) {
        return new EqualsMatcher<T>(operand);
    }

}
